package com.car.carsharing.mapper;

import com.car.carsharing.pojo.Car;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CarMapper {
    Car getCars(Car car);

    Integer insert(Car car);

    List<Car> getAllCars(Car car);

    int updateCar(Car car);

    Car getCarById(@Param("carId") Integer carId);

    int addCar(Car car);

    List<Car> getCarNuM();
}
